function Child({count, setCount}) {
  return <>
      <div>This is a child component {count}</div>
      <button onClick={() => setCount(count + 1)}>Increment</button>
  </>;
}

export default Child;